package com.bingquan.company.bean;

import com.bingquan.company.util.SpringBeanUtil;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class PostmanControl {

    @RequestMapping("/testSpringContextGetBeanMethord")
    public String testSpringContextGetBeanMethord() {

        GenerateBean01 generateBean01 = (GenerateBean01) SpringBeanUtil.getBeanByName("generateBean01");
        return generateBean01.test();
    }
}
